package com.cj.service;
import com.cj.po.Dormgrade;
import com.cj.po.PageInfo;
import com.cj.po.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.ui.Model;

import java.util.List;

/**
 * 用户Service层接口
 */
public interface DormgradeService {
    //    @Override
    //    public PageInfo<Student> findPageInfo(Integer c_classid, String c_classname, String c_counsellor, Integer pageIndex, Integer pageSize) {
    //        return null;
    //    }
    //    @Override
    //    public pageInfo<Dormgrade> findDormitory(Integer d_id);
   // PageInfo<Dormgrade> findPageInfo(Integer d_id, Integer s_dormitoryid,
     //                                String d_dormbuilding, Integer d_bed, String a_name);

   //  PageInfo<Dormgrade> findPageInfo(Integer d_id,Integer s_dormitoryid,String d_dormbuilding,Integer d_bed,String a_name,
   //                                         String s_classname);

    //    @Override
    //    public PageInfo<Student> findPageInfo(Integer c_classid, String c_classname, String c_counsellor, Integer pageIndex, Integer pageSize) {
    //        return null;
    //    }
    //    @Override
    //    public pageInfo<Dormgrade> findDormitory(Integer d_id);
    PageInfo<Dormgrade> findPageInfo(Integer d_id, Integer s_dormitoryid,
                                     String d_dormbuilding, Integer d_bed, String a_name, Integer pageIndex, Integer pageSize);

    public int deleteStudent(Integer s_id);   //通过id删除学生信息
    public int addStudent(Student student);   //添加学生信息
    public int updateStudent(Student student); //修改学生信息
    public Student findStudentById(Integer s_id);
    public List<Student> getAll();
    public Dormgrade findDormitory (Integer d_id);

    //    @Override
    //    public PageInfo<Student> findPageInfo(Integer c_classid, String c_classname, String c_counsellor, Integer pageIndex, Integer pageSize) {
    //        return null;
    //    }
    //    @Override
    //    public pageInfo<Dormgrade> findDormitory(Integer d_id);
  //  PageInfo<Dormgrade> findPageInfo(Integer d_id, Integer s_dormitoryid,
   //                                  String d_dormbuilding, Integer d_bed, String a_name, Integer pageIndex, Integer pageSize);

    public PageInfo<Dormgrade> findClassStudent(Integer d_id);

    PageInfo<Dormgrade> findPageInfo(Integer d_id, Integer s_dormitoryid, String d_dormbuilding, Integer d_bedtotal, Integer d_bed, String a_name);
}
